package com.group4.edu.client.impl;

import com.group4.edu.client.VodClient;
import com.study.util.ResponseResult;
import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @Description:熔断调用
 * @Author:l
 * @Date:2022.03.17
 */
@Component
public class VodClientHystrixImpl implements VodClient {
    @Override
    public ResponseResult<Void> removeVideoList(Set<String> videoIdSet) {
        ResponseResult<Void> responseResult = new ResponseResult<>();
        responseResult.setCode(500);
        responseResult.setMessage("别点了,服务器炸了");
        return responseResult;
    }
}
